package com.info.zhiduoduo.repository.dto.maker;

import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class CompanyMakerAlipayDto {

	@ApiModelProperty("创客id")
	private int userid;

	@ApiModelProperty("创客真实姓名")
	private String realname;

	@ApiModelProperty("工作室名称")
	private String username;

	@ApiModelProperty("创客手机号")
	private String phone;

	@ApiModelProperty("创客身份证")
	private String idno;

	@ApiModelProperty("绑定企业id")
	private Integer bindcompid;

	@ApiModelProperty("绑定企业")
	private String compname;

	@ApiModelProperty("创客季度项目总金额")
	private BigDecimal quarterTotalAmount;

	@ApiModelProperty("创客年度项目总金额")
	private BigDecimal yearTotalAmount;

	private Date createtime;

	public static CompanyMakerAlipayDto of(MakerAlipayDto dto) {
		CompanyMakerAlipayDto result = new CompanyMakerAlipayDto();
		BeanUtils.copyProperties(dto, result);
		return result;
	}

}
